package com.websocket.demo.server;

import java.io.IOException;

/**
 * @author lirenchun
 */

public interface WebSocketServer {
    /**
     * 通过用户名发送消息
     *
     * @param userName
     * @param msg
     * @throws IOException
     */
    void sendToUserByUserName(String userName, String msg) throws IOException;
}
